﻿using System;
using System.Windows;
using System.Windows.Controls;
using Moonwish.Silverlight.OsAvatar.Programs;

namespace Moonwish.Main.Silverlight
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();

            Loaded += MainPageLoaded;
        }

        private void MainPageLoaded(object sender, RoutedEventArgs e)
        {
            Desktop1.Programs.Add(new ClassicProgram()
                                      {
                                          IsShowDesktop = true,
                                          Name = "值对象管理",
                                          Id = Guid.NewGuid().ToString(),
                                          FullPath =
                                              "Moonwish.Foundation.Silverlight.xap/Moonwish.Foundation.Views.ValueObjects.ValueObjectMainView"
                                      });

        }

    }
}
